<html>
<head><meta charset="utf-8"><title>compiler dev with vim · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html">compiler dev with vim</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="157288337"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157288337" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157288337">(Jan 31 2019 at 17:20)</a>:</h4>
<p>have any of you use something like vim-dispatch?</p>



<a name="157288388"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157288388" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157288388">(Jan 31 2019 at 17:20)</a>:</h4>
<p>I want to run <code>./x.py build</code> inside vim and be able to jump between errors on the quickfix</p>



<a name="157288426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157288426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157288426">(Jan 31 2019 at 17:21)</a>:</h4>
<p>unsure why the output I'm getting is broken, all the output lines are errors for quickfix so I can't jump quickly between files</p>



<a name="157288471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157288471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157288471">(Jan 31 2019 at 17:22)</a>:</h4>
<p>I have 66 errors which are mechanical to fix but it will take ages going copying and pasting the file paths manually :)</p>



<a name="157291525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157291525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157291525">(Jan 31 2019 at 18:04)</a>:</h4>
<p>problem fixed :)</p>



<a name="157291562"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157291562" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157291562">(Jan 31 2019 at 18:05)</a>:</h4>
<p>this <a href="https://shinglyu.github.io/web/2016/12/25/vim-quickfix-for-rust-and-servo.html" target="_blank" title="https://shinglyu.github.io/web/2016/12/25/vim-quickfix-for-rust-and-servo.html">https://shinglyu.github.io/web/2016/12/25/vim-quickfix-for-rust-and-servo.html</a> has some information about it</p>



<a name="157291591"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157291591" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157291591">(Jan 31 2019 at 18:05)</a>:</h4>
<p>main thing was that I was using <code>:Dispatch</code> but I need to use <code>:Make</code> and properly configure <code>makepkg</code></p>



<a name="157296208"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157296208" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157296208">(Jan 31 2019 at 19:05)</a>:</h4>
<p>just gonna say, this works fine in emacs :)</p>



<a name="157296230"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157296230" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157296230">(Jan 31 2019 at 19:05)</a>:</h4>
<p>but I guess you found a vim sol'n</p>



<a name="157297009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157297009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157297009">(Jan 31 2019 at 19:13)</a>:</h4>
<p>it may be that I don't know some things really ;)</p>



<a name="157297029"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157297029" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157297029">(Jan 31 2019 at 19:14)</a>:</h4>
<p>all you need to do is run :make</p>



<a name="157297089"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157297089" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157297089">(Jan 31 2019 at 19:14)</a>:</h4>
<p>but of course of you don't say that you have a ./x.py it's not going to realize by itself</p>



<a name="157297106"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157297106" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157297106">(Jan 31 2019 at 19:14)</a>:</h4>
<p>so you need to do <code>:set makepkg=./x.py</code></p>



<a name="157297119"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157297119" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157297119">(Jan 31 2019 at 19:14)</a>:</h4>
<p>and then <code>:make build ...</code></p>



<a name="157297159"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157297159" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157297159">(Jan 31 2019 at 19:15)</a>:</h4>
<p>I'm going to try with <code>projectionist</code> which is a plugin in which you can configure some things so that could be changed on a project basis</p>



<a name="157363982"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157363982" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> blitzerr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157363982">(Feb 01 2019 at 16:14)</a>:</h4>
<p>Thanks <span class="user-mention" data-user-id="116266">@Santiago Pastorino</span>  for posting that link and the info.</p>



<a name="157364645"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157364645" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157364645">(Feb 01 2019 at 16:22)</a>:</h4>
<p><span class="user-mention" data-user-id="128294">@blitzerr</span> my intention is to build something that has everything integrated :)</p>



<a name="157364660"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157364660" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157364660">(Feb 01 2019 at 16:22)</a>:</h4>
<p>let me know if you need something else :)</p>



<a name="157367052"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367052" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> blitzerr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367052">(Feb 01 2019 at 16:58)</a>:</h4>
<p>That's a good intention <span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> <span aria-label="grinning" class="emoji emoji-1f600" role="img" title="grinning">:grinning:</span></p>
<p>Please share if you have RLS working with rustc Dev</p>



<a name="157367265"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367265" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367265">(Feb 01 2019 at 17:01)</a>:</h4>
<p>I do have something working</p>



<a name="157367282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367282">(Feb 01 2019 at 17:01)</a>:</h4>
<p>to be honest I'm not sure what is the thing that makes some suggestions and stuff</p>



<a name="157367290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367290">(Feb 01 2019 at 17:01)</a>:</h4>
<p>have RLS and Racer</p>



<a name="157367294"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367294" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367294">(Feb 01 2019 at 17:01)</a>:</h4>
<p>it may be Racer, unsure</p>



<a name="157367359"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367359" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367359">(Feb 01 2019 at 17:02)</a>:</h4>
<p>iirc racer is the thing that makes suggestions, but RLS is the thing that hooks it up into your editor</p>



<a name="157367366"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367366" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> QuietMisdreavus <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367366">(Feb 01 2019 at 17:02)</a>:</h4>
<p>so you'll need both</p>



<a name="157367381"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367381" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367381">(Feb 01 2019 at 17:02)</a>:</h4>
<p>yeah, that's what I have</p>



<a name="157367383"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367383" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367383">(Feb 01 2019 at 17:02)</a>:</h4>
<p><span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>



<a name="157367418"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367418" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367418">(Feb 01 2019 at 17:03)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@Aleksey Kladov</span> tells me you can use rust-analyzer with VSCode when working on rustc</p>



<a name="157367421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157367421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157367421">(Feb 01 2019 at 17:03)</a>:</h4>
<p>but I've never tried it myself</p>



<a name="157371564"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157371564" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157371564">(Feb 01 2019 at 18:01)</a>:</h4>
<p>I might have to try rust-analyzer. Racer rarely gives me completions when working rustc but maybe it's just a user issue and I have it misconfigured or something.</p>



<a name="157386667"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157386667" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> blitzerr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157386667">(Feb 01 2019 at 21:16)</a>:</h4>
<p><span class="user-mention" data-user-id="116009">@nikomatsakis</span>  are you suggesting we give up vims and emacses ? <span aria-label="smiley" class="emoji emoji-1f603" role="img" title="smiley">:smiley:</span></p>



<a name="157405925"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/compiler%20dev%20with%20vim/near/157405925" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/compiler.20dev.20with.20vim.html#157405925">(Feb 02 2019 at 03:59)</a>:</h4>
<p><span class="user-mention" data-user-id="128294">@blitzerr</span> I had tried vscode several times, then back to vim again and again. vscode is kind of slow while dealing with such big project as rustc, the extensions keep crashing(but my machine might be the one to blame)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>